package com.xbongbong.saas.enums;


import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 *
 * @author xingxing.xiao
 * @date 2019/11/26 14:44
 */
@Getter
public enum MirrorModuleEnum {

    APP("app","enum.mirrorModule.name.app"),


    MENU("menu","enum.mirrorModule.name.menu"),


    FORM("form","enum.mirrorModule.name.form"),


    FIELD("field","enum.mirrorModule.name.field"),


    FIELD_ATTR("fieldAttr","enum.mirrorModule.name.field_attr"),


    FORM_ATTR("formAttr","enum.mirrorModule.name.form_attr"),


    CATEGORY("category","enum.mirrorModule.name.category"),


    CHART("chart","enum.mirrorModule.name.chart"),
    ;

    /**
     * 配置别名
     */
    private final String alias;
    /**
     * 配置名称
     */
    private final String name;

    MirrorModuleEnum(String alias, String name) {
        this.alias = alias;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

}
